package com.example.huadu_server.landlord.dto;

import com.example.huadu_server.landlord.entity.LandlordSchedule;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;


@Data
public class LandlordScheduleDTO {
    private String scheduleDate;  // 日期

    private List<LandlordSchedule> schedules;  // 对应日期的档期时段


    public LandlordScheduleDTO() {
        this.schedules = new ArrayList<>();
    }

    public LandlordScheduleDTO(String scheduleDate) {
        this.scheduleDate = scheduleDate;
        this.schedules = new ArrayList<>();
    }

    public void addSchedule(LandlordSchedule schedule) {
        this.schedules.add(schedule);
    }

}
